package com.qk.enums;

/**
 * @Author: zhangchuang
 * @Date: 2025/10/10 19:35
 * @Description: 异常参数枚举类
 */
public enum ParamEnum implements Code {

    PARAM_ERROR("参数错误", 10001),
    PARAM_NOT_NULL_ERROR("参数不能为空", 10002),
    LOGIN_USERNAME_OR_PASSWORD_ERROR("用户名或密码错误", 20001),
    LOGIN_USER_STATUS_ERROR("用户被停用", 20002),
    ;

    private final int code;
    private final String message;

    ParamEnum(String message, int code) {
        this.message = message;
        this.code = code;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
